package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("blog")
public class Blog {

    @TableId(value = "blog_id", type = IdType.AUTO)
    private Integer blogId;

    private String title;

    private String classify;

    private String content;

    private LocalDateTime lastModifyDate;

    private Integer userId;

    private AuthLimits blogLimits = AuthLimits.PRIVATE;
}
